package com.nega.modules.mapper;

import com.nega.commons.model.MemberUser;
import org.apache.ibatis.annotations.Param;

public interface MemberUserMapper {

    MemberUser getUserById(String id);

    MemberUser getUserByAccount(String account);

    MemberUser getUserByEmail(String email);

    MemberUser getUserByMobile(String mobile);

    MemberUser getUserByInstituion(String instituionCode);

    void insert(MemberUser user);

    void activeUserByEmail(String email);

    void update(MemberUser memberUser);

    MemberUser getNotActiveUserByEmail(String email);

    MemberUser getUserByUserCode(String invitationCode);

    void updateInvitaNumberByEmail(@Param("email") String email, @Param("num")int num);
}
